var Model = function(entity) {
	entity.inherit(entity, this); // Make Model an Entity

	this.entities = {};
	this.entities['Entity'] = entity;
};

Model.prototype.register = function(class, constructor) {
	this.entities[class] = constructor;
};

Model.prototype.create = function(obj) {
	var class = obj.class || 'Entity';

	return new this.entities[class](obj, this)
			|| new this.entities['Entity'](obj, this);
};
